package com.quanyan.pay.entity;

import com.quanyan.common.Plugin.Page;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RefundRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public RefundRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andBatchRefundNoIsNull() {
            addCriterion("batch_refund_no is null");
            return (Criteria) this;
        }

        public Criteria andBatchRefundNoIsNotNull() {
            addCriterion("batch_refund_no is not null");
            return (Criteria) this;
        }

        public Criteria andBatchRefundNoEqualTo(String value) {
            addCriterion("batch_refund_no =", value, "batchRefundNo");
            return (Criteria) this;
        }

        public Criteria andBatchRefundNoNotEqualTo(String value) {
            addCriterion("batch_refund_no <>", value, "batchRefundNo");
            return (Criteria) this;
        }

        public Criteria andBatchRefundNoGreaterThan(String value) {
            addCriterion("batch_refund_no >", value, "batchRefundNo");
            return (Criteria) this;
        }

        public Criteria andBatchRefundNoGreaterThanOrEqualTo(String value) {
            addCriterion("batch_refund_no >=", value, "batchRefundNo");
            return (Criteria) this;
        }

        public Criteria andBatchRefundNoLessThan(String value) {
            addCriterion("batch_refund_no <", value, "batchRefundNo");
            return (Criteria) this;
        }

        public Criteria andBatchRefundNoLessThanOrEqualTo(String value) {
            addCriterion("batch_refund_no <=", value, "batchRefundNo");
            return (Criteria) this;
        }

        public Criteria andBatchRefundNoLike(String value) {
            addCriterion("batch_refund_no like", value, "batchRefundNo");
            return (Criteria) this;
        }

        public Criteria andBatchRefundNoNotLike(String value) {
            addCriterion("batch_refund_no not like", value, "batchRefundNo");
            return (Criteria) this;
        }

        public Criteria andBatchRefundNoIn(List<String> values) {
            addCriterion("batch_refund_no in", values, "batchRefundNo");
            return (Criteria) this;
        }

        public Criteria andBatchRefundNoNotIn(List<String> values) {
            addCriterion("batch_refund_no not in", values, "batchRefundNo");
            return (Criteria) this;
        }

        public Criteria andBatchRefundNoBetween(String value1, String value2) {
            addCriterion("batch_refund_no between", value1, value2, "batchRefundNo");
            return (Criteria) this;
        }

        public Criteria andBatchRefundNoNotBetween(String value1, String value2) {
            addCriterion("batch_refund_no not between", value1, value2, "batchRefundNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoIsNull() {
            addCriterion("order_no is null");
            return (Criteria) this;
        }

        public Criteria andOrderNoIsNotNull() {
            addCriterion("order_no is not null");
            return (Criteria) this;
        }

        public Criteria andOrderNoEqualTo(String value) {
            addCriterion("order_no =", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotEqualTo(String value) {
            addCriterion("order_no <>", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThan(String value) {
            addCriterion("order_no >", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThanOrEqualTo(String value) {
            addCriterion("order_no >=", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThan(String value) {
            addCriterion("order_no <", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThanOrEqualTo(String value) {
            addCriterion("order_no <=", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLike(String value) {
            addCriterion("order_no like", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotLike(String value) {
            addCriterion("order_no not like", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoIn(List<String> values) {
            addCriterion("order_no in", values, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotIn(List<String> values) {
            addCriterion("order_no not in", values, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoBetween(String value1, String value2) {
            addCriterion("order_no between", value1, value2, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotBetween(String value1, String value2) {
            addCriterion("order_no not between", value1, value2, "orderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoIsNull() {
            addCriterion("refund_order_no is null");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoIsNotNull() {
            addCriterion("refund_order_no is not null");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoEqualTo(String value) {
            addCriterion("refund_order_no =", value, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoNotEqualTo(String value) {
            addCriterion("refund_order_no <>", value, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoGreaterThan(String value) {
            addCriterion("refund_order_no >", value, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoGreaterThanOrEqualTo(String value) {
            addCriterion("refund_order_no >=", value, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoLessThan(String value) {
            addCriterion("refund_order_no <", value, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoLessThanOrEqualTo(String value) {
            addCriterion("refund_order_no <=", value, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoLike(String value) {
            addCriterion("refund_order_no like", value, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoNotLike(String value) {
            addCriterion("refund_order_no not like", value, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoIn(List<String> values) {
            addCriterion("refund_order_no in", values, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoNotIn(List<String> values) {
            addCriterion("refund_order_no not in", values, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoBetween(String value1, String value2) {
            addCriterion("refund_order_no between", value1, value2, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andRefundOrderNoNotBetween(String value1, String value2) {
            addCriterion("refund_order_no not between", value1, value2, "refundOrderNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeRefundNoIsNull() {
            addCriterion("out_trade_refund_no is null");
            return (Criteria) this;
        }

        public Criteria andOutTradeRefundNoIsNotNull() {
            addCriterion("out_trade_refund_no is not null");
            return (Criteria) this;
        }

        public Criteria andOutTradeRefundNoEqualTo(String value) {
            addCriterion("out_trade_refund_no =", value, "outTradeRefundNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeRefundNoNotEqualTo(String value) {
            addCriterion("out_trade_refund_no <>", value, "outTradeRefundNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeRefundNoGreaterThan(String value) {
            addCriterion("out_trade_refund_no >", value, "outTradeRefundNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeRefundNoGreaterThanOrEqualTo(String value) {
            addCriterion("out_trade_refund_no >=", value, "outTradeRefundNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeRefundNoLessThan(String value) {
            addCriterion("out_trade_refund_no <", value, "outTradeRefundNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeRefundNoLessThanOrEqualTo(String value) {
            addCriterion("out_trade_refund_no <=", value, "outTradeRefundNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeRefundNoLike(String value) {
            addCriterion("out_trade_refund_no like", value, "outTradeRefundNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeRefundNoNotLike(String value) {
            addCriterion("out_trade_refund_no not like", value, "outTradeRefundNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeRefundNoIn(List<String> values) {
            addCriterion("out_trade_refund_no in", values, "outTradeRefundNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeRefundNoNotIn(List<String> values) {
            addCriterion("out_trade_refund_no not in", values, "outTradeRefundNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeRefundNoBetween(String value1, String value2) {
            addCriterion("out_trade_refund_no between", value1, value2, "outTradeRefundNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeRefundNoNotBetween(String value1, String value2) {
            addCriterion("out_trade_refund_no not between", value1, value2, "outTradeRefundNo");
            return (Criteria) this;
        }

        public Criteria andTsnRefundNoIsNull() {
            addCriterion("tsn_refund_no is null");
            return (Criteria) this;
        }

        public Criteria andTsnRefundNoIsNotNull() {
            addCriterion("tsn_refund_no is not null");
            return (Criteria) this;
        }

        public Criteria andTsnRefundNoEqualTo(String value) {
            addCriterion("tsn_refund_no =", value, "tsnRefundNo");
            return (Criteria) this;
        }

        public Criteria andTsnRefundNoNotEqualTo(String value) {
            addCriterion("tsn_refund_no <>", value, "tsnRefundNo");
            return (Criteria) this;
        }

        public Criteria andTsnRefundNoGreaterThan(String value) {
            addCriterion("tsn_refund_no >", value, "tsnRefundNo");
            return (Criteria) this;
        }

        public Criteria andTsnRefundNoGreaterThanOrEqualTo(String value) {
            addCriterion("tsn_refund_no >=", value, "tsnRefundNo");
            return (Criteria) this;
        }

        public Criteria andTsnRefundNoLessThan(String value) {
            addCriterion("tsn_refund_no <", value, "tsnRefundNo");
            return (Criteria) this;
        }

        public Criteria andTsnRefundNoLessThanOrEqualTo(String value) {
            addCriterion("tsn_refund_no <=", value, "tsnRefundNo");
            return (Criteria) this;
        }

        public Criteria andTsnRefundNoLike(String value) {
            addCriterion("tsn_refund_no like", value, "tsnRefundNo");
            return (Criteria) this;
        }

        public Criteria andTsnRefundNoNotLike(String value) {
            addCriterion("tsn_refund_no not like", value, "tsnRefundNo");
            return (Criteria) this;
        }

        public Criteria andTsnRefundNoIn(List<String> values) {
            addCriterion("tsn_refund_no in", values, "tsnRefundNo");
            return (Criteria) this;
        }

        public Criteria andTsnRefundNoNotIn(List<String> values) {
            addCriterion("tsn_refund_no not in", values, "tsnRefundNo");
            return (Criteria) this;
        }

        public Criteria andTsnRefundNoBetween(String value1, String value2) {
            addCriterion("tsn_refund_no between", value1, value2, "tsnRefundNo");
            return (Criteria) this;
        }

        public Criteria andTsnRefundNoNotBetween(String value1, String value2) {
            addCriterion("tsn_refund_no not between", value1, value2, "tsnRefundNo");
            return (Criteria) this;
        }

        public Criteria andRefundChannelIsNull() {
            addCriterion("refund_channel is null");
            return (Criteria) this;
        }

        public Criteria andRefundChannelIsNotNull() {
            addCriterion("refund_channel is not null");
            return (Criteria) this;
        }

        public Criteria andRefundChannelEqualTo(String value) {
            addCriterion("refund_channel =", value, "refundChannel");
            return (Criteria) this;
        }

        public Criteria andRefundChannelNotEqualTo(String value) {
            addCriterion("refund_channel <>", value, "refundChannel");
            return (Criteria) this;
        }

        public Criteria andRefundChannelGreaterThan(String value) {
            addCriterion("refund_channel >", value, "refundChannel");
            return (Criteria) this;
        }

        public Criteria andRefundChannelGreaterThanOrEqualTo(String value) {
            addCriterion("refund_channel >=", value, "refundChannel");
            return (Criteria) this;
        }

        public Criteria andRefundChannelLessThan(String value) {
            addCriterion("refund_channel <", value, "refundChannel");
            return (Criteria) this;
        }

        public Criteria andRefundChannelLessThanOrEqualTo(String value) {
            addCriterion("refund_channel <=", value, "refundChannel");
            return (Criteria) this;
        }

        public Criteria andRefundChannelLike(String value) {
            addCriterion("refund_channel like", value, "refundChannel");
            return (Criteria) this;
        }

        public Criteria andRefundChannelNotLike(String value) {
            addCriterion("refund_channel not like", value, "refundChannel");
            return (Criteria) this;
        }

        public Criteria andRefundChannelIn(List<String> values) {
            addCriterion("refund_channel in", values, "refundChannel");
            return (Criteria) this;
        }

        public Criteria andRefundChannelNotIn(List<String> values) {
            addCriterion("refund_channel not in", values, "refundChannel");
            return (Criteria) this;
        }

        public Criteria andRefundChannelBetween(String value1, String value2) {
            addCriterion("refund_channel between", value1, value2, "refundChannel");
            return (Criteria) this;
        }

        public Criteria andRefundChannelNotBetween(String value1, String value2) {
            addCriterion("refund_channel not between", value1, value2, "refundChannel");
            return (Criteria) this;
        }

        public Criteria andRefundRecvAccountIsNull() {
            addCriterion("refund_recv_account is null");
            return (Criteria) this;
        }

        public Criteria andRefundRecvAccountIsNotNull() {
            addCriterion("refund_recv_account is not null");
            return (Criteria) this;
        }

        public Criteria andRefundRecvAccountEqualTo(String value) {
            addCriterion("refund_recv_account =", value, "refundRecvAccount");
            return (Criteria) this;
        }

        public Criteria andRefundRecvAccountNotEqualTo(String value) {
            addCriterion("refund_recv_account <>", value, "refundRecvAccount");
            return (Criteria) this;
        }

        public Criteria andRefundRecvAccountGreaterThan(String value) {
            addCriterion("refund_recv_account >", value, "refundRecvAccount");
            return (Criteria) this;
        }

        public Criteria andRefundRecvAccountGreaterThanOrEqualTo(String value) {
            addCriterion("refund_recv_account >=", value, "refundRecvAccount");
            return (Criteria) this;
        }

        public Criteria andRefundRecvAccountLessThan(String value) {
            addCriterion("refund_recv_account <", value, "refundRecvAccount");
            return (Criteria) this;
        }

        public Criteria andRefundRecvAccountLessThanOrEqualTo(String value) {
            addCriterion("refund_recv_account <=", value, "refundRecvAccount");
            return (Criteria) this;
        }

        public Criteria andRefundRecvAccountLike(String value) {
            addCriterion("refund_recv_account like", value, "refundRecvAccount");
            return (Criteria) this;
        }

        public Criteria andRefundRecvAccountNotLike(String value) {
            addCriterion("refund_recv_account not like", value, "refundRecvAccount");
            return (Criteria) this;
        }

        public Criteria andRefundRecvAccountIn(List<String> values) {
            addCriterion("refund_recv_account in", values, "refundRecvAccount");
            return (Criteria) this;
        }

        public Criteria andRefundRecvAccountNotIn(List<String> values) {
            addCriterion("refund_recv_account not in", values, "refundRecvAccount");
            return (Criteria) this;
        }

        public Criteria andRefundRecvAccountBetween(String value1, String value2) {
            addCriterion("refund_recv_account between", value1, value2, "refundRecvAccount");
            return (Criteria) this;
        }

        public Criteria andRefundRecvAccountNotBetween(String value1, String value2) {
            addCriterion("refund_recv_account not between", value1, value2, "refundRecvAccount");
            return (Criteria) this;
        }

        public Criteria andPayIdIsNull() {
            addCriterion("pay_id is null");
            return (Criteria) this;
        }

        public Criteria andPayIdIsNotNull() {
            addCriterion("pay_id is not null");
            return (Criteria) this;
        }

        public Criteria andPayIdEqualTo(Integer value) {
            addCriterion("pay_id =", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdNotEqualTo(Integer value) {
            addCriterion("pay_id <>", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdGreaterThan(Integer value) {
            addCriterion("pay_id >", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pay_id >=", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdLessThan(Integer value) {
            addCriterion("pay_id <", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdLessThanOrEqualTo(Integer value) {
            addCriterion("pay_id <=", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdIn(List<Integer> values) {
            addCriterion("pay_id in", values, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdNotIn(List<Integer> values) {
            addCriterion("pay_id not in", values, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdBetween(Integer value1, Integer value2) {
            addCriterion("pay_id between", value1, value2, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pay_id not between", value1, value2, "payId");
            return (Criteria) this;
        }

        public Criteria andAppIdIsNull() {
            addCriterion("app_id is null");
            return (Criteria) this;
        }

        public Criteria andAppIdIsNotNull() {
            addCriterion("app_id is not null");
            return (Criteria) this;
        }

        public Criteria andAppIdEqualTo(String value) {
            addCriterion("app_id =", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotEqualTo(String value) {
            addCriterion("app_id <>", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdGreaterThan(String value) {
            addCriterion("app_id >", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdGreaterThanOrEqualTo(String value) {
            addCriterion("app_id >=", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdLessThan(String value) {
            addCriterion("app_id <", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdLessThanOrEqualTo(String value) {
            addCriterion("app_id <=", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdLike(String value) {
            addCriterion("app_id like", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotLike(String value) {
            addCriterion("app_id not like", value, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdIn(List<String> values) {
            addCriterion("app_id in", values, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotIn(List<String> values) {
            addCriterion("app_id not in", values, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdBetween(String value1, String value2) {
            addCriterion("app_id between", value1, value2, "appId");
            return (Criteria) this;
        }

        public Criteria andAppIdNotBetween(String value1, String value2) {
            addCriterion("app_id not between", value1, value2, "appId");
            return (Criteria) this;
        }

        public Criteria andMchAccountIsNull() {
            addCriterion("mch_account is null");
            return (Criteria) this;
        }

        public Criteria andMchAccountIsNotNull() {
            addCriterion("mch_account is not null");
            return (Criteria) this;
        }

        public Criteria andMchAccountEqualTo(String value) {
            addCriterion("mch_account =", value, "mchAccount");
            return (Criteria) this;
        }

        public Criteria andMchAccountNotEqualTo(String value) {
            addCriterion("mch_account <>", value, "mchAccount");
            return (Criteria) this;
        }

        public Criteria andMchAccountGreaterThan(String value) {
            addCriterion("mch_account >", value, "mchAccount");
            return (Criteria) this;
        }

        public Criteria andMchAccountGreaterThanOrEqualTo(String value) {
            addCriterion("mch_account >=", value, "mchAccount");
            return (Criteria) this;
        }

        public Criteria andMchAccountLessThan(String value) {
            addCriterion("mch_account <", value, "mchAccount");
            return (Criteria) this;
        }

        public Criteria andMchAccountLessThanOrEqualTo(String value) {
            addCriterion("mch_account <=", value, "mchAccount");
            return (Criteria) this;
        }

        public Criteria andMchAccountLike(String value) {
            addCriterion("mch_account like", value, "mchAccount");
            return (Criteria) this;
        }

        public Criteria andMchAccountNotLike(String value) {
            addCriterion("mch_account not like", value, "mchAccount");
            return (Criteria) this;
        }

        public Criteria andMchAccountIn(List<String> values) {
            addCriterion("mch_account in", values, "mchAccount");
            return (Criteria) this;
        }

        public Criteria andMchAccountNotIn(List<String> values) {
            addCriterion("mch_account not in", values, "mchAccount");
            return (Criteria) this;
        }

        public Criteria andMchAccountBetween(String value1, String value2) {
            addCriterion("mch_account between", value1, value2, "mchAccount");
            return (Criteria) this;
        }

        public Criteria andMchAccountNotBetween(String value1, String value2) {
            addCriterion("mch_account not between", value1, value2, "mchAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountIsNull() {
            addCriterion("buyer_account is null");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountIsNotNull() {
            addCriterion("buyer_account is not null");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountEqualTo(String value) {
            addCriterion("buyer_account =", value, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountNotEqualTo(String value) {
            addCriterion("buyer_account <>", value, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountGreaterThan(String value) {
            addCriterion("buyer_account >", value, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountGreaterThanOrEqualTo(String value) {
            addCriterion("buyer_account >=", value, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountLessThan(String value) {
            addCriterion("buyer_account <", value, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountLessThanOrEqualTo(String value) {
            addCriterion("buyer_account <=", value, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountLike(String value) {
            addCriterion("buyer_account like", value, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountNotLike(String value) {
            addCriterion("buyer_account not like", value, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountIn(List<String> values) {
            addCriterion("buyer_account in", values, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountNotIn(List<String> values) {
            addCriterion("buyer_account not in", values, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountBetween(String value1, String value2) {
            addCriterion("buyer_account between", value1, value2, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andBuyerAccountNotBetween(String value1, String value2) {
            addCriterion("buyer_account not between", value1, value2, "buyerAccount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountIsNull() {
            addCriterion("order_amount is null");
            return (Criteria) this;
        }

        public Criteria andOrderAmountIsNotNull() {
            addCriterion("order_amount is not null");
            return (Criteria) this;
        }

        public Criteria andOrderAmountEqualTo(BigDecimal value) {
            addCriterion("order_amount =", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountNotEqualTo(BigDecimal value) {
            addCriterion("order_amount <>", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountGreaterThan(BigDecimal value) {
            addCriterion("order_amount >", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("order_amount >=", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountLessThan(BigDecimal value) {
            addCriterion("order_amount <", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("order_amount <=", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountIn(List<BigDecimal> values) {
            addCriterion("order_amount in", values, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountNotIn(List<BigDecimal> values) {
            addCriterion("order_amount not in", values, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_amount between", value1, value2, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_amount not between", value1, value2, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountIsNull() {
            addCriterion("refund_amount is null");
            return (Criteria) this;
        }

        public Criteria andRefundAmountIsNotNull() {
            addCriterion("refund_amount is not null");
            return (Criteria) this;
        }

        public Criteria andRefundAmountEqualTo(BigDecimal value) {
            addCriterion("refund_amount =", value, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountNotEqualTo(BigDecimal value) {
            addCriterion("refund_amount <>", value, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountGreaterThan(BigDecimal value) {
            addCriterion("refund_amount >", value, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("refund_amount >=", value, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountLessThan(BigDecimal value) {
            addCriterion("refund_amount <", value, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("refund_amount <=", value, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountIn(List<BigDecimal> values) {
            addCriterion("refund_amount in", values, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountNotIn(List<BigDecimal> values) {
            addCriterion("refund_amount not in", values, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("refund_amount between", value1, value2, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andRefundAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("refund_amount not between", value1, value2, "refundAmount");
            return (Criteria) this;
        }

        public Criteria andReasonIsNull() {
            addCriterion("reason is null");
            return (Criteria) this;
        }

        public Criteria andReasonIsNotNull() {
            addCriterion("reason is not null");
            return (Criteria) this;
        }

        public Criteria andReasonEqualTo(String value) {
            addCriterion("reason =", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonNotEqualTo(String value) {
            addCriterion("reason <>", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonGreaterThan(String value) {
            addCriterion("reason >", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonGreaterThanOrEqualTo(String value) {
            addCriterion("reason >=", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonLessThan(String value) {
            addCriterion("reason <", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonLessThanOrEqualTo(String value) {
            addCriterion("reason <=", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonLike(String value) {
            addCriterion("reason like", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonNotLike(String value) {
            addCriterion("reason not like", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonIn(List<String> values) {
            addCriterion("reason in", values, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonNotIn(List<String> values) {
            addCriterion("reason not in", values, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonBetween(String value1, String value2) {
            addCriterion("reason between", value1, value2, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonNotBetween(String value1, String value2) {
            addCriterion("reason not between", value1, value2, "reason");
            return (Criteria) this;
        }

        public Criteria andRefundNotifyUrlIsNull() {
            addCriterion("refund_notify_url is null");
            return (Criteria) this;
        }

        public Criteria andRefundNotifyUrlIsNotNull() {
            addCriterion("refund_notify_url is not null");
            return (Criteria) this;
        }

        public Criteria andRefundNotifyUrlEqualTo(String value) {
            addCriterion("refund_notify_url =", value, "refundNotifyUrl");
            return (Criteria) this;
        }

        public Criteria andRefundNotifyUrlNotEqualTo(String value) {
            addCriterion("refund_notify_url <>", value, "refundNotifyUrl");
            return (Criteria) this;
        }

        public Criteria andRefundNotifyUrlGreaterThan(String value) {
            addCriterion("refund_notify_url >", value, "refundNotifyUrl");
            return (Criteria) this;
        }

        public Criteria andRefundNotifyUrlGreaterThanOrEqualTo(String value) {
            addCriterion("refund_notify_url >=", value, "refundNotifyUrl");
            return (Criteria) this;
        }

        public Criteria andRefundNotifyUrlLessThan(String value) {
            addCriterion("refund_notify_url <", value, "refundNotifyUrl");
            return (Criteria) this;
        }

        public Criteria andRefundNotifyUrlLessThanOrEqualTo(String value) {
            addCriterion("refund_notify_url <=", value, "refundNotifyUrl");
            return (Criteria) this;
        }

        public Criteria andRefundNotifyUrlLike(String value) {
            addCriterion("refund_notify_url like", value, "refundNotifyUrl");
            return (Criteria) this;
        }

        public Criteria andRefundNotifyUrlNotLike(String value) {
            addCriterion("refund_notify_url not like", value, "refundNotifyUrl");
            return (Criteria) this;
        }

        public Criteria andRefundNotifyUrlIn(List<String> values) {
            addCriterion("refund_notify_url in", values, "refundNotifyUrl");
            return (Criteria) this;
        }

        public Criteria andRefundNotifyUrlNotIn(List<String> values) {
            addCriterion("refund_notify_url not in", values, "refundNotifyUrl");
            return (Criteria) this;
        }

        public Criteria andRefundNotifyUrlBetween(String value1, String value2) {
            addCriterion("refund_notify_url between", value1, value2, "refundNotifyUrl");
            return (Criteria) this;
        }

        public Criteria andRefundNotifyUrlNotBetween(String value1, String value2) {
            addCriterion("refund_notify_url not between", value1, value2, "refundNotifyUrl");
            return (Criteria) this;
        }

        public Criteria andRefundStateIsNull() {
            addCriterion("refund_state is null");
            return (Criteria) this;
        }

        public Criteria andRefundStateIsNotNull() {
            addCriterion("refund_state is not null");
            return (Criteria) this;
        }

        public Criteria andRefundStateEqualTo(Byte value) {
            addCriterion("refund_state =", value, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateNotEqualTo(Byte value) {
            addCriterion("refund_state <>", value, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateGreaterThan(Byte value) {
            addCriterion("refund_state >", value, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("refund_state >=", value, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateLessThan(Byte value) {
            addCriterion("refund_state <", value, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateLessThanOrEqualTo(Byte value) {
            addCriterion("refund_state <=", value, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateIn(List<Byte> values) {
            addCriterion("refund_state in", values, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateNotIn(List<Byte> values) {
            addCriterion("refund_state not in", values, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateBetween(Byte value1, Byte value2) {
            addCriterion("refund_state between", value1, value2, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundStateNotBetween(Byte value1, Byte value2) {
            addCriterion("refund_state not between", value1, value2, "refundState");
            return (Criteria) this;
        }

        public Criteria andRefundMsgIsNull() {
            addCriterion("refund_msg is null");
            return (Criteria) this;
        }

        public Criteria andRefundMsgIsNotNull() {
            addCriterion("refund_msg is not null");
            return (Criteria) this;
        }

        public Criteria andRefundMsgEqualTo(String value) {
            addCriterion("refund_msg =", value, "refundMsg");
            return (Criteria) this;
        }

        public Criteria andRefundMsgNotEqualTo(String value) {
            addCriterion("refund_msg <>", value, "refundMsg");
            return (Criteria) this;
        }

        public Criteria andRefundMsgGreaterThan(String value) {
            addCriterion("refund_msg >", value, "refundMsg");
            return (Criteria) this;
        }

        public Criteria andRefundMsgGreaterThanOrEqualTo(String value) {
            addCriterion("refund_msg >=", value, "refundMsg");
            return (Criteria) this;
        }

        public Criteria andRefundMsgLessThan(String value) {
            addCriterion("refund_msg <", value, "refundMsg");
            return (Criteria) this;
        }

        public Criteria andRefundMsgLessThanOrEqualTo(String value) {
            addCriterion("refund_msg <=", value, "refundMsg");
            return (Criteria) this;
        }

        public Criteria andRefundMsgLike(String value) {
            addCriterion("refund_msg like", value, "refundMsg");
            return (Criteria) this;
        }

        public Criteria andRefundMsgNotLike(String value) {
            addCriterion("refund_msg not like", value, "refundMsg");
            return (Criteria) this;
        }

        public Criteria andRefundMsgIn(List<String> values) {
            addCriterion("refund_msg in", values, "refundMsg");
            return (Criteria) this;
        }

        public Criteria andRefundMsgNotIn(List<String> values) {
            addCriterion("refund_msg not in", values, "refundMsg");
            return (Criteria) this;
        }

        public Criteria andRefundMsgBetween(String value1, String value2) {
            addCriterion("refund_msg between", value1, value2, "refundMsg");
            return (Criteria) this;
        }

        public Criteria andRefundMsgNotBetween(String value1, String value2) {
            addCriterion("refund_msg not between", value1, value2, "refundMsg");
            return (Criteria) this;
        }

        public Criteria andRefundTimeIsNull() {
            addCriterion("refund_time is null");
            return (Criteria) this;
        }

        public Criteria andRefundTimeIsNotNull() {
            addCriterion("refund_time is not null");
            return (Criteria) this;
        }

        public Criteria andRefundTimeEqualTo(Date value) {
            addCriterion("refund_time =", value, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeNotEqualTo(Date value) {
            addCriterion("refund_time <>", value, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeGreaterThan(Date value) {
            addCriterion("refund_time >", value, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("refund_time >=", value, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeLessThan(Date value) {
            addCriterion("refund_time <", value, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeLessThanOrEqualTo(Date value) {
            addCriterion("refund_time <=", value, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeIn(List<Date> values) {
            addCriterion("refund_time in", values, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeNotIn(List<Date> values) {
            addCriterion("refund_time not in", values, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeBetween(Date value1, Date value2) {
            addCriterion("refund_time between", value1, value2, "refundTime");
            return (Criteria) this;
        }

        public Criteria andRefundTimeNotBetween(Date value1, Date value2) {
            addCriterion("refund_time not between", value1, value2, "refundTime");
            return (Criteria) this;
        }

        public Criteria andNextCheckTimeIsNull() {
            addCriterion("next_check_time is null");
            return (Criteria) this;
        }

        public Criteria andNextCheckTimeIsNotNull() {
            addCriterion("next_check_time is not null");
            return (Criteria) this;
        }

        public Criteria andNextCheckTimeEqualTo(Date value) {
            addCriterion("next_check_time =", value, "nextCheckTime");
            return (Criteria) this;
        }

        public Criteria andNextCheckTimeNotEqualTo(Date value) {
            addCriterion("next_check_time <>", value, "nextCheckTime");
            return (Criteria) this;
        }

        public Criteria andNextCheckTimeGreaterThan(Date value) {
            addCriterion("next_check_time >", value, "nextCheckTime");
            return (Criteria) this;
        }

        public Criteria andNextCheckTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("next_check_time >=", value, "nextCheckTime");
            return (Criteria) this;
        }

        public Criteria andNextCheckTimeLessThan(Date value) {
            addCriterion("next_check_time <", value, "nextCheckTime");
            return (Criteria) this;
        }

        public Criteria andNextCheckTimeLessThanOrEqualTo(Date value) {
            addCriterion("next_check_time <=", value, "nextCheckTime");
            return (Criteria) this;
        }

        public Criteria andNextCheckTimeIn(List<Date> values) {
            addCriterion("next_check_time in", values, "nextCheckTime");
            return (Criteria) this;
        }

        public Criteria andNextCheckTimeNotIn(List<Date> values) {
            addCriterion("next_check_time not in", values, "nextCheckTime");
            return (Criteria) this;
        }

        public Criteria andNextCheckTimeBetween(Date value1, Date value2) {
            addCriterion("next_check_time between", value1, value2, "nextCheckTime");
            return (Criteria) this;
        }

        public Criteria andNextCheckTimeNotBetween(Date value1, Date value2) {
            addCriterion("next_check_time not between", value1, value2, "nextCheckTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}